<div class="title">
  <div class='content'>
    预订信息
  </div>
  <% if being_edited %>
  <div class='tools'>
    <%= link_to '编辑',
          edit_order_url(@order),  
          :remote => true,
          :method => :get
     %>
  </div>
  <% end %>
</div>
<div class='info'>
  <table>
    <tr>
      <th>
        订单号：
      </th>
      <td>
        <b class="order_no"><%= @order.order_no %></b><b class='status <%= @order.status %> corner'><%= t @order.status %></b>
      </td>
    </tr>
    <tr>
      <th>
        预定日期：
      </th>
      <td>
        <%= @order.ordered_on %>
      </td>
    </tr>
    <tr>
      <th>
        交货日期：
      </th>
      <td>
        <%= @order.deliveried_on %>
      </td>
    </tr>
    <tr>
      <th>
        总价：
      </th>
      <td>
        <%= number_with_precision(@order.sale_price, :precision => 2) %>
      </td>
    </tr>
    <tr>
      <th>
        预付款：
      </th>
      <td>
        <%= number_with_precision(@order.order_price, :precision => 2) %>
      </td>
    </tr>
    <tr>
      <th>特殊说明：</th>
      <td colspan='3'>
        <%= @order.remark %>
      </td>
    </tr>
  </table>    
</div>